<div class="layui-fluid">
    <div class="layui-card">
        <!--<div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="layadmin-myinvoice-viewformlist">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">上传时间</label>
                    <div class="layui-inline" id="ID-laydate-rangeLinked">
                        <div class="layui-input-inline">
                            <input type="text" autocomplete="off" id="ID-laydate-start-date-1" name="uploadTimeStart" class="layui-input" placeholder="开始时间">
                        </div>
                        <div class="layui-form-mid">-</div>
                        <div class="layui-input-inline">
                            <input type="text" autocomplete="off" id="ID-laydate-end-date-1" name="uploadTimeEnd" class="layui-input" placeholder="结束时间">
                        </div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">批次号</label>
                    <div class="layui-input-block">
                        <input type="text" name="lotNo" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-myinvoice-viewresult-search">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> 查询
                    </button>
                </div>
            </div>
        </div>-->

        <div class="layui-card-body">
            <table id="LAY-myinvoice-viewinforesult-manage" lay-filter="LAY-myinvoice-viewinforesult-manage"></table>
            <script type="text/html" id="successCountTpl">
                <a class="layui-table-link" lay-event="viewInfoSuccess">
                    {{= d.successCount }}
                </a>
            </script>

        </div>
    </div>
</div>

<script>
    layui.use(['admin', 'table', 'form'], function () {
        var $ = layui.$
            , admin = layui.admin
            , setter = layui.setter
            , view = layui.view
            , table = layui.table
            , laydate = layui.laydate
            , form = layui.form;

        //form.render(null, 'layadmin-myinvoice-viewformlist');

        //获取路由参数
        var router = layui.router();
        let lotId = router.search.lotId;
        let isSuccess = router.search.isSuccess;

        // 日期范围 - 左右面板联动选择模式
        laydate.render({
            elem: '#ID-laydate-rangeLinked',
            range: ['#ID-laydate-start-date-1', '#ID-laydate-end-date-1'],
            rangeLinked: true // 开启日期范围选择时的区间联动标注模式 ---  2.8+ 新增
        });

        //开启搜索
        form.on('submit(LAY-myinvoice-viewresult-search)', function (data) {
            var field = data.field;

            //执行重载
            table.reload('LAY-myinvoice-viewinforesult-manage', {
                where: field
            });
        });

    });
</script>